<template>
  <div class="wrapper">
    <div class="income-card">
      <div class="income-title van-hairline--bottom">
        <span class="title">
          收入金额
        </span>
        <span class="income">
          +{{ incomeList.Revenue }}
        </span>
      </div>
      <ul class="lists">
        <li>
          <div class="types">
            购买班级：
          </div>
          <div class="class-name">
            {{ incomeList.ClassName }}
          </div>
        </li>
        <li>
          <div class="types">
            班级价格：
          </div>
          <div class="infos">
            ￥{{ incomeList.ClassPrice }}
          </div>
        </li>
        <li>
          <div class="types">
            所属类别：
          </div>
          <div class="infos">
            {{ incomeList.CategoryName }}
          </div>
        </li>
        <li>
          <div class="types purchaser">
            购买人：
          </div>
          <div class="infos">
            {{ incomeList.PurchaserName }}
          </div>
        </li>
        <li>
          <div class="types">
            订单时间：
          </div>
          <div class="infos">
            {{ incomeList.OrderTime }}
          </div>
        </li>
      </ul>
    </div>
  </div>
</template>

<script lang="ts">
import Vue from 'vue'
export default Vue.extend({
  // eslint-disable-next-line vue/require-default-prop
  // eslint-disable-next-line vue/require-prop-types
  props: ['incomeList'],
  data () {
    return {
    }
  },
})
</script>

<style scoped lang="scss">
.income-card{
  font-size: 0;
  display: flex;
  flex-direction: column;
  // height: 432px;
  padding: 0 24px;
  margin-bottom: 20px;
  background: #ffffff;
  .income-title{
    height: 109px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    .title{
      font-size: 30px;
      color:#333;
    }
    .income{
      font-size: 36px;
      color: #BA2401;
      font-weight: bold;
    }
  }
  .lists{
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 30px 0;
    li{
      // flex:1;
      display: flex;
      align-items: center;
      margin-bottom: 30px;
      .types{
        color: #666;
        font-size: 30px;
      }
      .purchaser {
        // 字间距
        letter-spacing: 10px;
        word-spacing: -20px;
      }
      .infos, .class-name {
        color: #333;
        padding-top: 2px;
        font-size: 30px;
        // font-weight: 500;
      }
      .class-name {
        width: calc(100%-160px);
        @include ellipsis;
      }
    }
  }
}
</style>
